package com.lucker.controller;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.lucker.ds.mapper.MUserMapper;
import com.lucker.ds.model.MUser;

@Controller
public class BaseController {
	
	
	public Logger getLoger() {
		return LoggerFactory.getLogger(this.getClass());
	}
	
	@Autowired
	private MUserMapper mUserMapper;
	
	
	
	@RequestMapping(value="test")
	public @ResponseBody List<MUser> test() {	
		MUser st = new MUser();
		return mUserMapper.selectAll(st);
	}
	
}
